﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace NCS_CS
{
    public partial class FormZed : Form
    {
        public FormZed()
        {
            InitializeComponent();
            try
            {
                //Dim xtmp2 As Single()
                //Dim ytmp2 As Single()

                mcurve1.init();
                mcurve1.setLineCount(ModMain.NUMChanel);
                //setlineColor();
                double[] xtmp;
                double[] ytmp;
                int n = 0;
                int i = 0;
                for (i = 0; i <= ModMain.NUMChanel - 1; i++)
                {
                    xtmp =ModMain.getFrmMain().mysig.getarr();
                    ytmp = ModMain.getFrmMain().mysig.getArr(i);
                    n = ModMain.getFrmMain().mysig.xn;
                    mcurve1.setArrV(ref xtmp, ref  ytmp, n, Convert.ToInt16(i));

                }
            }
            catch (System.Exception e)
            {
                modLog.savelogmsg(e.ToString());
            }
        }

        private void tableLayoutPanel1_Paint(object sender, PaintEventArgs e)
        {

        }

        private void mcurve1_Load(object sender, EventArgs e)
        {

        }
    }
}
